#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int sstrcmp(char* a, char* b)
{
	int i;
	for (i = 0;; i++)
	{
		if ('\0' == a[i] &&'\0' == b[i])
			return 0;
		if (a[i] > b[i]|| '\0' == b[i])
			return 1;
		if (a[i] < b[i]|| a[i] == '\0')
			return -1;
	}
}

int mainmnscmp()
{
	char a[] = "sihsre";
	char b[] = "sihsrf";
	
	printf("%d\n", sstrcmp(a, b));
	return 0;
}